package bean;

public class Users {
	private String name;
	private String pwd;
	private int id;
	private int roleid;
	private Roles rinfo;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Users(String name, String pwd, int id, int roleid) {
		super();
		this.name = name;
		this.pwd = pwd;
		this.id = id;
		this.roleid = roleid;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getRoleid() {
		return roleid;
	}
	public void setRoleid(int roleid) {
		this.roleid = roleid;
	}
	public Roles getRinfo() {
		return rinfo;
	}
	public void setRinfo(Roles rinfo) {
		this.rinfo = rinfo;
	}
	public Users(String name, String pwd, int id, int roleid, Roles rinfo) {
		super();
		this.name = name;
		this.pwd = pwd;
		this.id = id;
		this.roleid = roleid;
		this.rinfo = rinfo;
	}
	public Users() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Users [name=" + name + ", pwd=" + pwd + ", id=" + id
				+ ", roleid=" + roleid + "]";
	}
	
}
